package com.xiao.hao.convertor;


import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;
import java.util.List;
import com.xiao.hao.config.LocalDateTimeConfig;
import com.xiao.hao.req.XhProductInsertReq;
import com.xiao.hao.req.XhProductQueryPageReq;
import com.xiao.hao.req.XhProductUpdateReq;
import com.xiao.hao.resp.XhProductResp;
import com.xiao.hao.entity.XhProduct;

/**
*
*
* @Description 产品计划表 类型转换
* @Author xiaohao
* @Date 2025-03-04 11:24:49
*/
@Mapper(uses = {LocalDateTimeConfig.class}, componentModel = "spring")
public interface XhProductConvertor {

    XhProductConvertor INSTANCE = Mappers.getMapper(XhProductConvertor.class);

    /**
    * 功能描述:
    *
    * @param req
    * @return com.xiao.hao.entity.XhProduct
    * @author xiaohao
    * @date 2025-03-04 11:24:49
    */
    XhProduct reqToEntity(XhProductInsertReq req);

    /**
    * 功能描述:
    *
    * @param req
    * @return com.xiao.hao.entity.XhProduct
    * @author xiaohao
    * @date 2025-03-04 11:24:49
    */
    XhProduct reqToEntity(XhProductUpdateReq req);


    /**
    * 功能描述:
    *
    * @param entity
    * @return com.xiao.hao.resp.XhProductResp
    * @author xiaohao
    * @date 2025-03-04 11:24:49
    */
    XhProductResp entityToResp(XhProduct entity);

    /**
    * 功能描述:
    *
    * @param list
    * @return java.util.List<com.xiao.hao.resp.XhProductResp>
    * @author xiaohao
    * @date 2025-03-04 11:24:49
    */
    List<XhProductResp> entityListToRespList(List<XhProduct> list);
}



